<?php
/**
 * UploadFilesInfoAction class file.
 *
 * @package   controllers
 * @subpackage patientSignal
 * @since     1.0
 * @filesource
 */

Yii::import('application.controllers.patientSignal.AbstractUploadAction');

/**
 * Action class which clear the patient signal information in session which is input by user.
 * The information includes basic information of patient signal and upload file information in session.
 * The uploaded files that are temporarily stored on server will be deleted.
 * This action class will be integrated by PatientSignalController.
 * @see PatientSignalController 
 */
class CancelUploadAction extends AbstractUploadAction {

	
	/**
	 * Action to perform when the user choose to cancel the form. Clean all data in session.
	 */
	public function run(){
		$this->clearUploadFiles();
		$this->clearUploadForm();
		$this->getController()->redirect(array('index'));
	}
}